<?php
	// no direct access
	defined( '_JEXEC' ) or die( 'Restricted access' );
	jimport( 'joomla.application.component.view');
	
	class DivisionViewDivisionList extends JView
	{                                               
		function display()
		{
			$model = $this->getModel();
			
			$divisions = $model->getDivisions();
			$this->assign('divisions', $divisions);		
			
			JToolBarHelper::title( JText::_( 'Park Boys New York' ), 'generic.png' );	
			
			JToolBarHelper::addNew();
			JToolBarHelper::editListX();
			JToolBarHelper::deleteListX();
			
			JSubMenuHelper::addEntry("Divisions", "?option=com_pbny&c=Division", true);
			JSubMenuHelper::addEntry("Teams", "?option=com_pbny&c=Team");
			JSubMenuHelper::addEntry("Players", "?option=com_pbny&c=Player");
			
			parent::display();
		}
	}
?>